package my.mark.mybaibaoxiang.eventDemo.easyEvent;

import java.util.EventListener;

/**
 * @author twotiger-wxm.
 * @date 2019-9-11.
 */
public class DoorStateListener implements EventListener {
    public void doorEvent(DoorEvent event) {
        if (event.getValue() != null && event.getValue().equals("open")) {
            System.out.println("门1打开");
        } else {
            System.out.println("门1关闭");
        }
    }
}
